import request from '@/plugin/axios'
import util from '@/libs/util.js'

export default {

	list (data) {
		return request({
			url: 'bank/channelMchConn/list',
			headers: {},
			method: 'post',
			data,
		});
	},

	add (data) {
		return request({
			url: 'bank/channelMchConn/add',
			headers: {},
			method: 'post',
			data,
		});
	},

	set (data) {
		return request({
			url: 'bank/channelMchConn/set',
			headers: {},
			method: 'post',
			data,
		});
	},

	info (data) {
		return request({
			url: 'bank/channelMchConn/info',
			headers: {},
			method: 'post',
			data,
		});
	},

	del (data) {
		return request({
			url: 'bank/channelMchConn/del',
			headers: {},
			method: 'post',
			data,
		});
	},

	option (data) {
		return request({
			url: 'mchInfo/option',
			headers: {},
			method: 'post',
			data,
		});
	},

	channelUsed (data) {
		return request({
			url: 'bank/channelMchConn/getTradeLimitCost',
			headers: {},
			method: 'post',
			data,
		});
	},

	channelList (data) {
		return request({
			url: 'bank/channelMchConn/getTradeLimitCostList',
			headers: {},
			method: 'post',
			data,
		});
	},


	channelStatus (data) {
		return request({
			url: 'bank/channelMchConn/setStatus',
			headers: {},
			method: 'post',
			data,
		});
	},

	channelLimit (data) {
		return request({
			url: 'bank/channelMchConn/getTradeLimitCost',
			headers: {},
			method: 'post',
			data,
		});
	},

	setChannelLimit (data) {
		return request({
			url: 'bank/channelMchConn/setTradeLimit',
			headers: {},
			method: 'post',
			data,
		});
	},

	exportExcel (data) {
		return request({
			url: 'bank/channelMchConn/exportexcel',
			headers: {},
			method: 'post',
			data,
		});
	},

};